package com.hy.mydesktop.shared.business;

import java.util.ArrayList ;
import java.util.HashMap ;
import java.util.List ;
import java.util.Map ;

import com.extjs.gxt.ui.client.data.BaseModel ;
import com.hy.mydesktop.client.component.mvc.event.EventStructureMetaModel;
import com.hy.mydesktop.client.component.type.ComponentControllerEnum;
import com.hy.mydesktop.client.component.type.ComponentTypeEnum;
import com.hy.mydesktop.shared.persistence.domain.gxt.GxtComponentMetaModel;
import com.hy.mydesktop.shared.persistence.domain.gxt.GxtComponentMetaNodeModel;

public class UnitConversionRateServices
{
	//创建桌面快捷方式的代码	
	private GxtComponentMetaModel createDynamicDesktopController3() {

		Map<String , Object> desktopController=new HashMap<String, Object>();
//		desktopController.put("component_controller_model_type", ComponentControllerEnum.DESKTOP_CONTROL_MODEL);
		desktopController.put("component_controller_model_type_index", ComponentControllerEnum.DESKTOP_CONTROLLOR_MODEL.ordinal());
		List<String> codes1 = new ArrayList<String>();
		codes1.add("0003");
		codes1.add("0002");
		codes1.add("0005");
		desktopController.put("registereventtypes", codes1);
		desktopController.put("id", "desktopController");
		GxtComponentMetaNodeModel node=new GxtComponentMetaNodeModel(desktopController,1,4);
		
		Map<String , Object> shortcutController=new HashMap<String, Object>();
//		shortcutController.put("component_controller_model_type", ComponentControllerEnum.SHORTCUT_CONTROLLER_MODEL);
		shortcutController.put("component_controller_model_type_index", ComponentControllerEnum.SHORTCUT_CONTROLLER_MODEL.ordinal());
		List<String> codes2 = new ArrayList<String>();
		codes2.add("0003");
		codes2.add("0002");
		codes2.add("0005");
		shortcutController.put("registereventtypes", codes2);
		shortcutController.put("id", "shortcutController01");
		shortcutController.put("viewdata", "shortcut_viewData_init_01");	
		shortcutController.put("gxtcomponentmetanodemodel", this.getShortcutGxtComponentMetaNodeModel());		
		GxtComponentMetaNodeModel node2=new GxtComponentMetaNodeModel(shortcutController,2,3);
		
		
		List<GxtComponentMetaNodeModel> list=new ArrayList<GxtComponentMetaNodeModel>();
		list.add(node);
		list.add(node2);
		

		GxtComponentMetaModel gxtComponentMetaModel=new GxtComponentMetaModel(list);
		
		
		
		
		return gxtComponentMetaModel;
		

	}
	
	


	private GxtComponentMetaNodeModel getShortcutGxtComponentMetaNodeModel() {
		Map<String, Object> map2=new HashMap<String, Object>();
		//map2.put("component_model_type", ComponentTypeEnum.SHORTCUT_MODEL);
		map2.put("component_model_type_index", ComponentTypeEnum.SHORTCUT_MODEL.ordinal());
		//TODO map2.put("appEventType", AppEvents.DESKTOP_SHORTCUT_ONCLICK_INIT);
			Map<String,Object> RegisterEventTypeDatas = new HashMap<String, Object>();
			//添加需要监听的事件类型，指定由某一个控制器响应，控制器内部应该如何响应（附加参数和数据）
			/**
			 * 00_01_02为特征码
			 * 或者是 控制器的唯一标识
			 */
				Map<String,Object> oneRegisterEventTypeData = new HashMap<String, Object>();
					EventStructureMetaModel eventStructureMetaModel = new EventStructureMetaModel();
					eventStructureMetaModel.setControllerId("shortcutController01");
					eventStructureMetaModel.setRootControllerId("desktopController");
					eventStructureMetaModel.setResponseModeId("00_01_02");
				oneRegisterEventTypeData.put("eventstructuremetamodel", eventStructureMetaModel);
				
					Map<String,Object> oneDispacherEventTypeData = new HashMap<String, Object>();
						EventStructureMetaModel subEventStructureMetaModel = new EventStructureMetaModel();
						subEventStructureMetaModel.setControllerId("1_1_windowController_UnitConversionRate");
						subEventStructureMetaModel.setRootControllerId("1_1_windowController_UnitConversionRate");
					oneDispacherEventTypeData.put("eventstructuremetamodel", subEventStructureMetaModel);
					oneDispacherEventTypeData.put("count", 7);
				oneRegisterEventTypeData.put("dispachereventtype", "0007");
				
			RegisterEventTypeDatas.put("0003", oneRegisterEventTypeData);
			//codes1.add("0002");
		map2.put("registereventtypes", RegisterEventTypeDatas);
			Map<String,Object> dispacherEventTypeDatas = new HashMap<String, Object>();
			dispacherEventTypeDatas.put("0007", oneDispacherEventTypeData);
		map2.put("dispachereventtypes", dispacherEventTypeDatas);
		//map2.put("icon", "user");
		//map2.put("icon", "extanim32");
		map2.put("text", "Rpc   -----LoginView----AppEvents.DESKTOP_INIT_FOR_LOGGED_IN_USER");	
		GxtComponentMetaNodeModel node2=new GxtComponentMetaNodeModel(map2);
		return node2;
	}

	
	
	public List<GxtComponentMetaModel> validateLogin0 ( BaseModel	baseModel) {
		System.err.println("Rpc get Username + Password" + baseModel.get("username")
				+"  "+baseModel.get("password"));
		List<GxtComponentMetaModel> list=new ArrayList<GxtComponentMetaModel>();
		
		//list.add(gxtComponentMetaModel);
		list.add(this.createDynamicDesktopController3());
		list.add(this.createDynamicWindowController22());
			
	
		return list;
	}
	
	public GxtComponentMetaModel createDynamicWindowController22() {


		
		
		//窗口控制器
		Map<String , Object> windowController=new HashMap<String, Object>();
//		windowController.put("component_controller_model_type", ComponentControllerEnum.WINDOW_CONTROLLER_MODEL);
		windowController.put("component_controller_model_type_index", ComponentControllerEnum.WINDOW_CONTROLLER_MODEL.ordinal());
		List<String> codes1 = new ArrayList<String>();
		codes1.add("0301");		
		codes1.add("0401");
		codes1.add("0007");
		codes1.add("0008");
		codes1.add("0013");
		
		windowController.put("id", "1_1_windowController_UnitConversionRate");
		windowController.put("registereventtypes", codes1);
		windowController.put("viewdata", "window_viewData_init_02");		
		windowController.put("gxtcomponentmetanodemodel", this.getWindowGxtComponentMetaNodeModel());		
		GxtComponentMetaNodeModel node=new GxtComponentMetaNodeModel(windowController,1,32);
		
		//内容面板控制器
		Map<String , Object> contentPanelController=new HashMap<String, Object>();
//		contentPanelController.put("component_controller_model_type", ComponentControllerEnum.CONTENTPANEL_CONTROLLER_MODEL);
		contentPanelController.put("component_controller_model_type_index", ComponentControllerEnum.CONTENTPANEL_CONTROLLER_MODEL.ordinal());
		List<String> codes2 = new ArrayList<String>();
		codes2.add("0301");
		codes2.add("0401");
		codes2.add("0007");
		codes2.add("0008");
		contentPanelController.put("registereventtypes", codes2);				
		contentPanelController.put("id", "2_1_contentPanelController_UnitConversionRate");				
		contentPanelController.put("viewdata", "contentPanel_viewData_init_01");
		contentPanelController.put("gxtcomponentmetanodemodel", this.getContentPanelGxtComponentMetaNodeModel());		

		GxtComponentMetaNodeModel node2=new GxtComponentMetaNodeModel(contentPanelController,2,31);
		
		//菜单栏控制器
		Map<String , Object> menuBarController=new HashMap<String, Object>();
//		menuBarController.put("component_controller_model_type", ComponentControllerEnum.MENUBAR_CONTROLLER_MODEL);
		menuBarController.put("component_controller_model_type_index", ComponentControllerEnum.MENUBAR_CONTROLLER_MODEL.ordinal());
		List<String> codes3 = new ArrayList<String>();
		codes3.add("0301");
		codes3.add("0401");
		codes3.add("0007");
		codes3.add("0008");
		menuBarController.put("registereventtypes", codes3);
		menuBarController.put("id", "3_1_menuBarController_UnitConversionRate");
		menuBarController.put("viewdata", "menuBar_viewData_init_01");		
	//	menuBarController.put("gxtcomponentmetanodemodel", this.getMenuBarGxtComponentMetaNodeModel2());		
		GxtComponentMetaNodeModel node3=new GxtComponentMetaNodeModel(menuBarController,3,4);
		
		
		//工具栏控制器
		Map<String , Object> toolBarController=new HashMap<String, Object>();
//		toolBarController.put("component_controller_model_type", ComponentControllerEnum.TOOLBAR_CONTROLLER_MODEL);
		toolBarController.put("component_controller_model_type_index", ComponentControllerEnum.TOOLBAR_CONTROLLER_MODEL.ordinal());
		List<String> codes4 = new ArrayList<String>();
	    codes4.add("0301");
		codes4.add("0401");
		codes4.add("0007");
		codes4.add("0008");
		toolBarController.put("registereventtypes", codes4);
		toolBarController.put("id", "3_1_toolBarController_UnitConversionRate");
		toolBarController.put("viewdata", "toolBar_viewData_init_01");		
		toolBarController.put("gxtcomponentmetanodemodel", this.getToolBarGxtComponentMetaNodeModel2());		
		GxtComponentMetaNodeModel node4=new GxtComponentMetaNodeModel(toolBarController,5,6);
		
		
		
		//提交面板控制器
		Map<String, Object> sumFormPanelController=new HashMap<String, Object>();
//		sumFormPanelController.put("component_controller_model_type", ComponentControllerEnum.FORMPANEL_CONTROLLER_MODEL);
		sumFormPanelController.put("component_controller_model_type_index", ComponentControllerEnum.FORMPANEL_CONTROLLER_MODEL.ordinal());
//		sumFormPanelController.put("component_controller_model_type_index", ComponentControllerEnum.CONTENTPANEL_CONTROLLER_MODEL.ordinal());
		List<String> codes45 = new ArrayList<String>();
		codes45.add("0301");
		codes45.add("0401");
		codes45.add("0007");
		codes45.add("0008");
		codes45.add("0304");
		sumFormPanelController.put("registereventtypes", codes45);
		sumFormPanelController.put("id", "3_1_sumFormPanelController_UnitConversionRate");
		sumFormPanelController.put("controllerdata", "sumFormPanel_controllerdata_init_01");		
		sumFormPanelController.put("viewdata", "sumFormPanel_viewData_init_01");		
		sumFormPanelController.put("gxtcomponentmetanodemodel",  this.getSumFormPanelGxtComponentMetaNodeModel());		
		//sumFormPanelController.put("gxtcomponentmetanodemodel", this.getContentPanelGxtComponentMetaNodeModel());		

		GxtComponentMetaNodeModel node45=new GxtComponentMetaNodeModel(sumFormPanelController, 7, 30);
		
		//表单控制器
		
		Map<String , Object> formPanelController=new HashMap<String, Object>();
//		formPanelController.put("component_controller_model_type", ComponentControllerEnum.FORMSET_MODULE_CONTROLLER_MODEL);
//		formPanelController.put("component_controller_model_type_index", ComponentControllerEnum.FORMPANEL_CONTROLLER_MODEL.ordinal());
		formPanelController.put("component_controller_model_type_index", ComponentControllerEnum.CONTENTPANEL_CONTROLLER_MODEL.ordinal());
		List<String> codes5 = new ArrayList<String>();
		codes5.add("0301");
		codes5.add("0401");
		codes5.add("0007");
		codes5.add("0008");
		formPanelController.put("registereventtypes", codes5);
		formPanelController.put("id", "4_1_formPanelController_UnitConversionRate");
		formPanelController.put("controllerdata", "formPanel_controllerdata_init_01");		
		formPanelController.put("viewdata", "formPanel_viewData_init_01");			
		formPanelController.put("gxtcomponentmetanodemodel",  this.getFormSetContentPanelGxtComponentMetaNodeModel());		
		GxtComponentMetaNodeModel node5=new GxtComponentMetaNodeModel(formPanelController,8,29);
		
		
		
		
		
		
		//内容面板控制器
		Map<String , Object> contentPanelController1=new HashMap<String, Object>();
//		contentPanelController.put("component_controller_model_type", ComponentControllerEnum.CONTENTPANEL_CONTROLLER_MODEL);
		contentPanelController1.put("component_controller_model_type_index", ComponentControllerEnum.CONTENTPANEL_CONTROLLER_MODEL.ordinal());
		List<String> codes6 = new ArrayList<String>();
		codes6.add("0301");
		codes6.add("0401");
		codes6.add("0007");
		codes6.add("0008");
		contentPanelController1.put("registereventtypes", codes6);				
		contentPanelController1.put("id", "5_1_contentPanelController_UnitConversionRate");				
		contentPanelController1.put("viewdata", "contentPanel_viewData_init_01");
		contentPanelController1.put("gxtcomponentmetanodemodel", this.getContentPanelGxtComponentMetaNodeModel1());	
		
		GxtComponentMetaNodeModel node6=new GxtComponentMetaNodeModel(contentPanelController1,9,18);
		

		//内容面板控制器
		Map<String , Object> contentPanelController2=new HashMap<String, Object>();
//		contentPanelController.put("component_controller_model_type", ComponentControllerEnum.CONTENTPANEL_CONTROLLER_MODEL);
		contentPanelController2.put("component_controller_model_type_index", ComponentControllerEnum.CONTENTPANEL_CONTROLLER_MODEL.ordinal());
		List<String> codes7 = new ArrayList<String>();
		codes7.add("0301");
		codes7.add("0401");
		codes7.add("0007");
		codes7.add("0008");
		contentPanelController2.put("registereventtypes", codes7);				
		contentPanelController2.put("id", "5_2_contentPanelController_UnitConversionRate");				
		contentPanelController2.put("viewdata", "contentPanel_viewData_init_01");
		contentPanelController2.put("gxtcomponentmetanodemodel", this.getContentPanelGxtComponentMetaNodeModel2());	
		
		GxtComponentMetaNodeModel node7=new GxtComponentMetaNodeModel(contentPanelController2,19,28);
		
		
		
		

		//源单位组下拉框控制器 
		Map<String , Object> unitGroupComboBoxController=new HashMap<String, Object>();
//		formPanelController.put("component_controller_model_type", ComponentControllerEnum.FORMSET_MODULE_CONTROLLER_MODEL);
		unitGroupComboBoxController.put("component_controller_model_type_index", ComponentControllerEnum.COMBOBOX_CONTROLLER_MODEL.ordinal());
		List<String> codes6_1 = new ArrayList<String>();
		codes6_1.add("0301");
		codes6_1.add("0401");
		codes6_1.add("0007");
		codes6_1.add("0008");
		unitGroupComboBoxController.put("registereventtypes", codes6_1);
		unitGroupComboBoxController.put("id", "6_1_ComboBoxController_UnitConversionRate");
		unitGroupComboBoxController.put("controllerdata", "comboBoxController_5_1_2_controllerdata_init_01");		
		unitGroupComboBoxController.put("viewdata", "comboBoxController_5_1_2_viewData_init_01");		
		unitGroupComboBoxController.put("gxtcomponentmetanodemodel",  this.getComboBoxGxtComponentMetaNodeModelnode6_1());		
		GxtComponentMetaNodeModel node6_1=new GxtComponentMetaNodeModel(unitGroupComboBoxController,10,11);
		
		
		//单位类型下拉框控制器 
		Map<String , Object> unitTypeComboBoxController=new HashMap<String, Object>();
//		formPanelController.put("component_controller_model_type", ComponentControllerEnum.FORMSET_MODULE_CONTROLLER_MODEL);
		unitTypeComboBoxController.put("component_controller_model_type_index", ComponentControllerEnum.COMBOBOX_CONTROLLER_MODEL.ordinal());
		List<String> codes6_2 = new ArrayList<String>();
		codes6_2.add("0301");
		codes6_2.add("0401");
		codes6_2.add("0007");
		codes6_2.add("0008");
		unitTypeComboBoxController.put("registereventtypes", codes6_2);
		unitTypeComboBoxController.put("id", "6_2_ComboBoxController_UnitConversionRate");
		unitTypeComboBoxController.put("controllerdata", "comboBoxController_5_1_2_controllerdata_init_01");		
		unitTypeComboBoxController.put("viewdata", "comboBoxController_5_1_2_viewData_init_01");		
		unitTypeComboBoxController.put("gxtcomponentmetanodemodel",  this.getComboBoxGxtComponentMetaNodeModelnode6_2());		
		GxtComponentMetaNodeModel node6_2=new GxtComponentMetaNodeModel(unitTypeComboBoxController,12,13);
		
	
		
		//基准单位 下拉框控制器
		Map<String , Object> textFieldController_6_1=new HashMap<String, Object>();
//		formPanelController.put("component_controller_model_type", ComponentControllerEnum.FORMSET_MODULE_CONTROLLER_MODEL);
		textFieldController_6_1.put("component_controller_model_type_index", ComponentControllerEnum.TEXTFIELD_CONTROLLER_MODEL.ordinal());
		List<String> codes6_3 = new ArrayList<String>();
		codes6_3.add("0301");
		codes6_3.add("0401");
		codes6_3.add("0007");
		codes6_3.add("0008");
		textFieldController_6_1.put("registereventtypes", codes6_3);
		textFieldController_6_1.put("id", "6_1_textFieldController_UnitConversionRate");
		textFieldController_6_1.put("controllerdata", "textFieldController_5_2_3_controllerdata_init_01");		
		textFieldController_6_1.put("viewdata", "textFieldController_5_2_3_viewData_init_01");		
		textFieldController_6_1.put("gxtcomponentmetanodemodel",  this.getComboBoxGxtComponentMetaNodeModelnode6_10());		
		GxtComponentMetaNodeModel node6_3=new GxtComponentMetaNodeModel(textFieldController_6_1,14,15);

		
		


		//描述 文本区域控制器
		Map<String , Object> textAreaController_6_1=new HashMap<String, Object>();
//		formPanelController.put("component_controller_model_type", ComponentControllerEnum.FORMSET_MODULE_CONTROLLER_MODEL);
		textAreaController_6_1.put("component_controller_model_type_index", ComponentControllerEnum.TEXTAREA_CONTROLLER_MODEL.ordinal());
		List<String> codes6_4 = new ArrayList<String>();
		codes6_4.add("0301");
		codes6_4.add("0401");
		codes6_4.add("0007");
		codes6_4.add("0008");
		textAreaController_6_1.put("registereventtypes", codes6_4);
		textAreaController_6_1.put("id", "6_1_textAreaController_UnitConversionRate");
		textAreaController_6_1.put("controllerdata", "textAreaController_5_1_1_controllerdata_init_01");		
		textAreaController_6_1.put("viewdata", "textFieldController_5_1_1_viewData_init_01");		
		textAreaController_6_1.put("gxtcomponentmetanodemodel",  this.getTextAreaGxtComponentMetaNodeModelnode6_4());
		GxtComponentMetaNodeModel node6_4=new GxtComponentMetaNodeModel(textAreaController_6_1,16,17);
		
		

		//源单位下拉框控制器 
		Map<String , Object> sourceUnitsComboBoxController=new HashMap<String, Object>();
//		formPanelController.put("component_controller_model_type", ComponentControllerEnum.FORMSET_MODULE_CONTROLLER_MODEL);
		sourceUnitsComboBoxController.put("component_controller_model_type_index", ComponentControllerEnum.COMBOBOX_CONTROLLER_MODEL.ordinal());
		List<String> codes6_5 = new ArrayList<String>();
		codes6_1.add("0301");
		codes6_1.add("0401");
		codes6_1.add("0007");
		codes6_1.add("0008");
		sourceUnitsComboBoxController.put("registereventtypes", codes6_5);
		sourceUnitsComboBoxController.put("id", "6_3_ComboBoxController_UnitConversionRate");
		sourceUnitsComboBoxController.put("controllerdata", "comboBoxController_5_1_2_controllerdata_init_01");		
		sourceUnitsComboBoxController.put("viewdata", "comboBoxController_5_1_2_viewData_init_01");		
		sourceUnitsComboBoxController.put("gxtcomponentmetanodemodel",  this.getComboBoxGxtComponentMetaNodeModelnode6_5());		
		GxtComponentMetaNodeModel node6_5=new GxtComponentMetaNodeModel(sourceUnitsComboBoxController,20,21);
		
		
		
		//换算方式下拉框控制器 
		Map<String , Object> conversionStyleComboBoxController=new HashMap<String, Object>();
//		formPanelController.put("component_controller_model_type", ComponentControllerEnum.FORMSET_MODULE_CONTROLLER_MODEL);
		conversionStyleComboBoxController.put("component_controller_model_type_index", ComponentControllerEnum.COMBOBOX_CONTROLLER_MODEL.ordinal());
		List<String> codes6_6 = new ArrayList<String>();
		codes6_6.add("0301");
		codes6_6.add("0401");
		codes6_6.add("0007");
		codes6_6.add("0008");
		conversionStyleComboBoxController.put("registereventtypes", codes6_6);
		conversionStyleComboBoxController.put("id", "6_4_ComboBoxController_UnitConversionRate");
		conversionStyleComboBoxController.put("controllerdata", "comboBoxController_5_1_2_controllerdata_init_01");		
		conversionStyleComboBoxController.put("viewdata", "comboBoxController_5_1_2_viewData_init_01");		
		conversionStyleComboBoxController.put("gxtcomponentmetanodemodel",  this.getComboBoxGxtComponentMetaNodeModelnode6_6());		
		GxtComponentMetaNodeModel node6_6=new GxtComponentMetaNodeModel(conversionStyleComboBoxController,22,23);
		
		
		
		
		
		//换算率 文本框控制器
		Map<String , Object> textFieldController_6_2=new HashMap<String, Object>();
//		formPanelController.put("component_controller_model_type", ComponentControllerEnum.FORMSET_MODULE_CONTROLLER_MODEL);
		textFieldController_6_2.put("component_controller_model_type_index", ComponentControllerEnum.TEXTFIELD_CONTROLLER_MODEL.ordinal());
		List<String> codes6_7 = new ArrayList<String>();
		codes6_7.add("0301");
		codes6_7.add("0401");
		codes6_7.add("0007");
		codes6_7.add("0008");
		textFieldController_6_2.put("registereventtypes", codes6_7);
		textFieldController_6_2.put("id", "6_2_textFieldController_UnitConversionRate");
		textFieldController_6_2.put("controllerdata", "textFieldController_5_2_3_controllerdata_init_01");		
		textFieldController_6_2.put("viewdata", "textFieldController_5_2_3_viewData_init_01");		
		textFieldController_6_2.put("gxtcomponentmetanodemodel",  this.getTextFieldGxtComponentMetaNodeModelnode6_7());		
		GxtComponentMetaNodeModel node6_7=new GxtComponentMetaNodeModel(textFieldController_6_2,24,25);

		

		//备注 文本区域控制器
		Map<String , Object> textAreaController_6_2=new HashMap<String, Object>();
//		formPanelController.put("component_controller_model_type", ComponentControllerEnum.FORMSET_MODULE_CONTROLLER_MODEL);
		textAreaController_6_2.put("component_controller_model_type_index", ComponentControllerEnum.TEXTAREA_CONTROLLER_MODEL.ordinal());
		List<String> codes6_8 = new ArrayList<String>();
		codes6_8.add("0301");
		codes6_8.add("0401");
		codes6_8.add("0007");
		codes6_8.add("0008");
		textAreaController_6_2.put("registereventtypes", codes6_8);
		textAreaController_6_2.put("id", "6_2_textAreaController_UnitConversionRate");
		textAreaController_6_2.put("controllerdata", "textAreaController_5_1_1_controllerdata_init_01");		
		textAreaController_6_2.put("viewdata", "textFieldController_5_1_1_viewData_init_01");		
		textAreaController_6_2.put("gxtcomponentmetanodemodel",  this.getTextAreaGxtComponentMetaNodeModelnode6_8());
		GxtComponentMetaNodeModel node6_8=new GxtComponentMetaNodeModel(textAreaController_6_2,26,27);
		
		
		
		

		List<GxtComponentMetaNodeModel> list=new ArrayList<GxtComponentMetaNodeModel>();
		list.add(node);
		list.add(node2);
		list.add(node3);
		list.add(node4);
		list.add(node45);
		list.add(node5);
		list.add(node6);
		list.add(node7);
		list.add(node6_1);
		list.add(node6_2);
		
		list.add(node6_3);
		//list.add(node6_4);
		list.add(node6_5);
		list.add(node6_6);
		list.add(node6_7);
		list.add(node6_8);
		GxtComponentMetaModel gxtComponentMetaModel=new GxtComponentMetaModel(list);
		return gxtComponentMetaModel;
		
	}
	
	
	

	/**
	 * 模拟从后台传过来的关于Window控件的元模型信息
	 */
	private GxtComponentMetaNodeModel getWindowGxtComponentMetaNodeModel( ) {
		Map<String, Object> map2=new HashMap<String, Object>();
//		map2.put("component_model_type", ComponentTypeEnum.WINDOW_MODEL);
		map2.put("component_model_type_index", ComponentTypeEnum.WINDOW_MODEL.ordinal());
		map2.put("title", "单位转换率设置");
		map2.put("width", 800);
		map2.put("hight", 550);
		map2.put("id", "01_01_windowGxtComponent_UnitConversionRate");
		map2.put("resizable", false);
		map2.put("maxmizable", false);
		map2.put("minmizable", true);
		map2.put("layout", ComponentTypeEnum.FITLAYOUT_MODEL.ordinal());
		GxtComponentMetaModel gxtComponentMetaModel = new GxtComponentMetaModel();
		GxtComponentMetaNodeModel gxtComponentMetaNodeModel=new GxtComponentMetaNodeModel(map2);
		                   
		return gxtComponentMetaNodeModel;
		
	}
	
	
	private GxtComponentMetaNodeModel getContentPanelGxtComponentMetaNodeModel() {
		Map<String, Object> map2=new HashMap<String, Object>();
		//map2.put("component_model_type", ComponentTypeEnum.CONTENTPANEL_MODEL);
		map2.put("component_model_type_index", ComponentTypeEnum.CONTENTPANEL_MODEL.ordinal());
		map2.put("headervisible", false);	
		map2.put("id", "02_01_contentPanelGxtComponent_UnitConversionRate");	
		map2.put("title", "Rpc===dataload----AppEvents.DESKTOP_INIT_FOR_LOGGED_IN_USER");	
		GxtComponentMetaNodeModel node2=new GxtComponentMetaNodeModel(map2);
		return node2;
	}
	
	private GxtComponentMetaNodeModel getToolBarGxtComponentMetaNodeModel2() {
		
		
	 	Map<String, Object> button01 = new HashMap<String, Object>();
	    button01.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());   
	    button01.put("text", "新建");
		  //TODO map2.put("appEventType", AppEvents.DESKTOP_SHORTCUT_ONCLICK_INIT);
			Map<String,Object> codes2 = new HashMap<String, Object>();
			//添加需要监听的事件类型，指定由某一个控制器响应，控制器内部应该如何响应（附加参数和数据）
			/**
			 * 00_01_02为特征码
			 * 或者是 控制器的唯一标识
			 */
				Map<String,Object> oneRegisterEventTypeData = new HashMap<String, Object>();
					EventStructureMetaModel eventStructureMetaModel = new EventStructureMetaModel();
					eventStructureMetaModel.setControllerId("windowController2");
					eventStructureMetaModel.setRootControllerId("windowController2");
				oneRegisterEventTypeData.put("eventstructuremetamodel", eventStructureMetaModel);
				
	
			codes2.put("0010", oneRegisterEventTypeData);
		button01.put("registereventtypes", codes2);
			BaseModel gxtToSeamServiceParameter = new BaseModel();
			gxtToSeamServiceParameter.set("serviceComponentName", "com.test.server.business.PersonService");
			gxtToSeamServiceParameter.set("serviceMethodName", "loadSubApplication");
			BaseModel[] methodArguments2 = new BaseModel[1];
			methodArguments2[0] = new BaseModel();
			gxtToSeamServiceParameter.set("methodArguments",methodArguments2 );
		button01.put("gxttoseamserviceparametermodel", gxtToSeamServiceParameter);
		GxtComponentMetaNodeModel node11  = new GxtComponentMetaNodeModel(button01);
		
		Map<String, Object> button02 = new HashMap<String, Object>();
	    button02.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());   
	    button02.put("text", "保存");
		GxtComponentMetaNodeModel node22  = new GxtComponentMetaNodeModel(button02);
		
		Map<String, Object> button03 = new HashMap<String, Object>();
	    button03.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());   
	    button03.put("text", "清空");
		GxtComponentMetaNodeModel node33  = new GxtComponentMetaNodeModel(button03);
		
		Map<String, Object> button04 = new HashMap<String, Object>();
	    button04.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());   
	    button04.put("text", "导入");
		GxtComponentMetaNodeModel node44  = new GxtComponentMetaNodeModel(button04);
		
		Map<String, Object> button05 = new HashMap<String, Object>();
	    button05.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());   
	    button05.put("text", "导出");
		GxtComponentMetaNodeModel node55  = new GxtComponentMetaNodeModel(button05);
	    
	   

		List<GxtComponentMetaNodeModel> list = new ArrayList<GxtComponentMetaNodeModel>();
		list.add(node11);
		list.add(node22);
		list.add(node33);
		//list.add(node44);
		//list.add(node55);
		
		Map<String, Object> toolbar=new HashMap<String, Object>();
		toolbar.put("component_model_type_index", ComponentTypeEnum.TOOLBAR_MODEL.ordinal());
		toolbar.put("id", "03_01_toolbarGxtComponent_UnitConversionRate");	
		//toolbar.put("add", btn);
		toolbar.put("children", list);
		ToolBarHandler.configureToolBarGxtComponentMetaNodeModel ( toolbar );
		GxtComponentMetaNodeModel node4=new GxtComponentMetaNodeModel(toolbar, 5, 6);
		
		

		return node4;
}
private GxtComponentMetaNodeModel getSumFormPanelGxtComponentMetaNodeModel() {
	//创建提交和取消按钮
	Map<String, Object> btnSubmit=new HashMap<String, Object>();
//	btnSubmit.put("component_model_type", ComponentTypeEnum.BUTTON_MODEL);
	//实际创建时，不检查此属性
	btnSubmit.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());
	btnSubmit.put("text", "sumFormPanel确定000000");
	btnSubmit.put("id", "03_01_sumFormPanelGxtComponent_UnitConversionRate");
	Map<String,Object> codes2 = new HashMap<String, Object>();
	//添加需要监听的事件类型，指定由某一个控制器响应，控制器内部应该如何响应（附加参数和数据）
	/**
	 * 00_01_02为特征码
	 * 或者是 控制器的唯一标识
	 */
			Map<String,Object> oneRegisterEventTypeData = new HashMap<String, Object>();
				EventStructureMetaModel eventStructureMetaModel = new EventStructureMetaModel();
				//eventStructureMetaModel.setControllerId("shortcutController02");
				eventStructureMetaModel.setRootControllerId("windowController2");
				//eventStructureMetaModel.setResponseModeId("00_02_02");
			oneRegisterEventTypeData.put("eventstructuremetamodel", eventStructureMetaModel);
			oneRegisterEventTypeData.put("dispachereventtype", "0007");
	
		codes2.put("0302", oneRegisterEventTypeData);
	btnSubmit.put("registereventtypes", codes2);
	GxtComponentMetaNodeModel btnSubmit1=new GxtComponentMetaNodeModel(btnSubmit);
	
	Map<String, Object> btnquxiao=new HashMap<String, Object>();
//	btnquxiao.put("component_model_type", ComponentTypeEnum.BUTTON_MODEL);
	//实际创建时，不检查此属性
	btnquxiao.put("component_model_type_index", ComponentTypeEnum.BUTTON_MODEL.ordinal());
	btnquxiao.put("text", "取消");
	GxtComponentMetaNodeModel btn1=new GxtComponentMetaNodeModel(btnquxiao);
	
	List<GxtComponentMetaNodeModel> list1=new ArrayList<GxtComponentMetaNodeModel>();
	list1.add(btnSubmit1);
	list1.add(btn1);
	
	
	
	Map<String, Object> MaxPanel=new HashMap<String, Object>();
//	MaxPanel.put("component_model_type", ComponentTypeEnum.FORMPANEL_MODEL);
	MaxPanel.put("component_model_type_index", ComponentTypeEnum.FORMPANEL_MODEL.ordinal());
	MaxPanel.put("autowidth", true);
	MaxPanel.put("autoheight", true);
	MaxPanel.put("frame", true);
	MaxPanel.put("headervisible", false);
	//TODO MaxPanel.put("addbutton", list1);
	MaxPanel.put("addsubmitbutton", true);
	MaxPanel.put("addresetbutton", true);
	MaxPanel.put("buttonalign", "CENTER");
	MaxPanel.put("id", "unitConversionRate");
	MaxPanel.put("layoutindex", ComponentTypeEnum.FORMLAYOUT_MODEL.ordinal());
	FormPanelHandler.configureFormPanel ( MaxPanel ,"unitConversionRateService","getUnitConversionRateById");
	//FormPanelHandler.configureFormPanel ( MaxPanel ,"com.test.server.business.PersonService","listPersonxx");
	GxtComponentMetaNodeModel node5=new GxtComponentMetaNodeModel(MaxPanel);
	
	return node5;
}



private GxtComponentMetaNodeModel getFormSetContentPanelGxtComponentMetaNodeModel(){
	Map<String, Object> map2=new HashMap<String, Object>();
	//map2.put("component_model_type", ComponentTypeEnum.CONTENTPANEL_MODEL);
	map2.put("component_model_type_index", ComponentTypeEnum.CONTENTPANEL_MODEL.ordinal());
	map2.put("headervisible", false);	
	map2.put("id", "04_01_formSetContentPanel_UnitConversionRate");	
	map2.put("layoutindex", ComponentTypeEnum.COLUMNLAYOUT_MODEL.ordinal());
	map2.put("layoutdatainparentcontainer", "100%");

	//map2.put("title", "Rpc===dataload----AppEvents.DESKTOP_INIT_FOR_LOGGED_IN_USER");	
	GxtComponentMetaNodeModel node2=new GxtComponentMetaNodeModel(map2);
	return node2;
}


private GxtComponentMetaNodeModel getContentPanelGxtComponentMetaNodeModel1() {
	Map<String, Object> map2=new HashMap<String, Object>();
	//map2.put("component_model_type", ComponentTypeEnum.CONTENTPANEL_MODEL);
	map2.put("component_model_type_index", ComponentTypeEnum.CONTENTPANEL_MODEL.ordinal());
	map2.put("headervisible", false);	
	map2.put("layoutindex", ComponentTypeEnum.FORMLAYOUT_MODEL.ordinal());
	map2.put("id", "05_01_contentPanelGxtComponent_UnitConversionRate");	
	map2.put("title", "Rpc===dataload----AppEvents.DESKTOP_INIT_FOR_LOGGED_IN_USER");	
	GxtComponentMetaNodeModel node2=new GxtComponentMetaNodeModel(map2);
	return node2;
}
private GxtComponentMetaNodeModel getContentPanelGxtComponentMetaNodeModel2() {
	Map<String, Object> map2=new HashMap<String, Object>();
	//map2.put("component_model_type", ComponentTypeEnum.CONTENTPANEL_MODEL);
	map2.put("component_model_type_index", ComponentTypeEnum.CONTENTPANEL_MODEL.ordinal());
	map2.put("headervisible", false);	
	map2.put("layoutindex", ComponentTypeEnum.FORMLAYOUT_MODEL.ordinal());
	map2.put("id", "05_02_contentPanelGxtComponent_UnitConversionRate");	
	map2.put("title", "Rpc===dataload----AppEvents.DESKTOP_INIT_FOR_LOGGED_IN_USER");	
	GxtComponentMetaNodeModel node2=new GxtComponentMetaNodeModel(map2);
	return node2;
}





private GxtComponentMetaNodeModel getComboBoxGxtComponentMetaNodeModelnode6_1() {
	//仓库
	Map<String, Object> type = new HashMap<String, Object>();
	type.put("component_model_type_index", ComponentTypeEnum.COMBOBOX_MODEL.ordinal());
	type.put("fieldlabel", "源单位组");
	type.put("id", "unitConversionRate.unitGroup");
	
	//type.put("dataload", "xxx");
	type.put("typeahead", true);
	type.put("emptytext", "===请选择===");
	type.put("loadingtext", "数据加载中,请稍等。。。。。。");
	type.put("allowblank", false);
	type.put("name", "comboBox");
//	BaseModel gxtToSeamServiceParameter = new BaseModel();
//	gxtToSeamServiceParameter.set("serviceComponentName", "com.test.server.business.PersonService");
//	gxtToSeamServiceParameter.set("serviceMethodName", "loadComboBoxData");
//	BaseModel[] methodArguments2 = new BaseModel[1];
//	methodArguments2[0] = new BaseModel();
//	gxtToSeamServiceParameter.set("methodArguments",methodArguments2 );
//	type.put("gxttoseamserviceparametermodel", gxtToSeamServiceParameter);

	HandlerData.data ( type , "unitGroupService" , "getAllUnitGroup" );
	GxtComponentMetaNodeModel node11  = new GxtComponentMetaNodeModel(type,12,13);
	return node11;
}



private GxtComponentMetaNodeModel getComboBoxGxtComponentMetaNodeModelnode6_10() {

	Map<String, Object> type = new HashMap<String, Object>();
	type.put("component_model_type_index", ComponentTypeEnum.COMBOBOX_MODEL.ordinal());
	type.put("fieldlabel", "基准单位");
	type.put("id", "unitConversionRate.normUnits");
	//type.put("dataload", "xxx");
	type.put("typeahead", true);
	type.put("emptytext", "===请选择===");
	type.put("loadingtext", "数据加载中,请稍等。。。。。。");
	type.put("allowblank", false);
	type.put("name", "comboBox001");
	type.put("seamcomponetname", "units");
//	BaseModel gxtToSeamServiceParameter = new BaseModel();
//	gxtToSeamServiceParameter.set("serviceComponentName", "unitsService");
//	gxtToSeamServiceParameter.set("serviceMethodName", "getAllUnits");
//	BaseModel[] methodArguments2 = new BaseModel[1];
//	methodArguments2[0] = new BaseModel();
//	gxtToSeamServiceParameter.set("methodArguments",methodArguments2 );
//	type.put("gxttoseamserviceparametermodel", gxtToSeamServiceParameter);
HandlerData.data ( type , "unitsService" , "getAllUnits" );
	
	GxtComponentMetaNodeModel node11  = new GxtComponentMetaNodeModel(type,12,13);
	return node11;
}
private GxtComponentMetaNodeModel getComboBoxGxtComponentMetaNodeModelnode6_2() {

	Map<String, Object> type = new HashMap<String, Object>();
	type.put("component_model_type_index", ComponentTypeEnum.COMBOBOX_MODEL.ordinal());
	type.put("fieldlabel", "单位类型");
	type.put("id", "unitConversionRate.unitType");
	//type.put("dataload", "xxx");
	type.put("typeahead", true);
	type.put("emptytext", "===请选择===");
	type.put("loadingtext", "数据加载中,请稍等。。。。。。");
	type.put("allowblank", false);
	type.put("name", "comboBox");
//	BaseModel gxtToSeamServiceParameter = new BaseModel();
//	gxtToSeamServiceParameter.set("serviceComponentName", "unitTypeService");
//	gxtToSeamServiceParameter.set("serviceMethodName", "getAllUnitType");
//	BaseModel[] methodArguments2 = new BaseModel[1];
//	methodArguments2[0] = new BaseModel();
//	gxtToSeamServiceParameter.set("methodArguments",methodArguments2 );
//	type.put("gxttoseamserviceparametermodel", gxtToSeamServiceParameter);

	HandlerData.data ( type , "unitTypeService" , "getAllUnitType" );
	GxtComponentMetaNodeModel node11  = new GxtComponentMetaNodeModel(type,12,13);
	return node11;
}


private GxtComponentMetaNodeModel getTextFieldGxtComponentMetaNodeModelnode6_3() {
	
	Map<String, Object> TextFieldGxtComponent = new HashMap<String, Object>();
	TextFieldGxtComponent.put("component_model_type_index", ComponentTypeEnum.TEXTFIELD_MODEL.ordinal());

			BaseModel gxtToSeamServiceParameter = new BaseModel();
			gxtToSeamServiceParameter.set("serviceComponentName", "com.test.server.business.PersonService");
			gxtToSeamServiceParameter.set("serviceMethodName", "loadTextFieldData");
			BaseModel[] methodArguments2 = new BaseModel[1];
			methodArguments2[0] = new BaseModel();
			gxtToSeamServiceParameter.set("methodArguments",methodArguments2 );
			TextFieldGxtComponent.put("gxttoseamserviceparametermodel", gxtToSeamServiceParameter);
			TextFieldGxtComponent.put("id", "06_03.UnitConversionRate.normUnits");
			TextFieldGxtComponent.put("width", "400");
			TextFieldGxtComponent.put("title", "bbbbbbbbbbbbbbb");
			TextFieldGxtComponent.put("fieldlabel", "基准单位");
			TextFieldGxtComponent.put("name", "textField01");
			TextFieldGxtComponent.put("emptytext", "afjooanfaof");
			TextFieldGxtComponent.put("allowblank", false);
		Map<String,Object> codes2 = new HashMap<String, Object>();
		//添加需要监听的事件类型，指定由某一个控制器响应，控制器内部应该如何响应（附加参数和数据）
		/**
		 * 00_01_02为特征码
		 * 或者是 控制器的唯一标识
		 */
			Map<String,Object> subMap = new HashMap<String, Object>();
				EventStructureMetaModel eventStructureMetaModel = new EventStructureMetaModel();
				eventStructureMetaModel.setControllerId("textFieldController01");
				eventStructureMetaModel.setResponseModeId("00_01_02");
			subMap.put("eventstructuremetamodel", eventStructureMetaModel);
		codes2.put("0301", subMap);
		//codes1.add("0002");
	//id.put("registereventtypes", codes2);
	GxtComponentMetaNodeModel node10  = new GxtComponentMetaNodeModel(TextFieldGxtComponent,10,11);
	return node10;
}



/**
 * 模拟从后台传过来的关于Window控件的元模型信息
 */
private GxtComponentMetaNodeModel getTextAreaGxtComponentMetaNodeModelnode6_4() {
	
	Map<String, Object> id = new HashMap<String, Object>();
	id.put("component_model_type_index", ComponentTypeEnum.TEXTAREA_MODEL.ordinal());
	
//			BaseModel gxtToSeamServiceParameter = new BaseModel();
//			gxtToSeamServiceParameter.set("serviceComponentName", "com.test.server.business.PersonService");
//			gxtToSeamServiceParameter.set("serviceMethodName", "loadTextFieldData");
//			BaseModel[] methodArguments2 = new BaseModel[1];
//			methodArguments2[0] = new BaseModel();
//			gxtToSeamServiceParameter.set("methodArguments",methodArguments2 );
//	id.put("gxttoseamserviceparametermodel", gxtToSeamServiceParameter);
	id.put("id", "unitConversionRate.DESCRIPTION");
	id.put("width", "400");
	id.put("height", 50);
	id.put("title", "bbbbbbbbbbbbbbb");
	id.put("fieldlabel", "描述信息");
	id.put("label", "编号Area_label");
	id.put("name", "textArea01");
	id.put("emptytext", "afjooanfaof");
	id.put("allowblank", false);
	HandlerData.data ( id , "unitConversionRateService" , "getAllUnitConversionRate" , "addUnitConversionRate" , "modifyUnitConversionRate" , "loadEditorableGrid" );
		Map<String,Object> codes2 = new HashMap<String, Object>();
		//添加需要监听的事件类型，指定由某一个控制器响应，控制器内部应该如何响应（附加参数和数据）
		/**
		 * 00_01_02为特征码
		 * 或者是 控制器的唯一标识
		 */
			Map<String,Object> subMap = new HashMap<String, Object>();
				EventStructureMetaModel eventStructureMetaModel = new EventStructureMetaModel();
				eventStructureMetaModel.setControllerId("textFieldController01");
				eventStructureMetaModel.setResponseModeId("00_01_02");
			subMap.put("eventstructuremetamodel", eventStructureMetaModel);
		codes2.put("0301", subMap);
	
	GxtComponentMetaNodeModel node10  = new GxtComponentMetaNodeModel(id,10,11);
	return node10;
	
}





private GxtComponentMetaNodeModel getComboBoxGxtComponentMetaNodeModelnode6_5() {

	Map<String, Object> type = new HashMap<String, Object>();
	type.put("component_model_type_index", ComponentTypeEnum.COMBOBOX_MODEL.ordinal());
	type.put("fieldlabel", "源单位");
	type.put("id", "unitConversionRate.sourceUnits");
	type.put("seamcomponetname", "units");
	//type.put("dataload", "xxx");
	type.put("typeahead", true);
	type.put("emptytext", "===请选择===");
	type.put("loadingtext", "数据加载中,请稍等。。。。。。");
	type.put("allowblank", false);
	type.put("name", "comboBox");
//	BaseModel gxtToSeamServiceParameter = new BaseModel();
//	gxtToSeamServiceParameter.set("serviceComponentName", "unitsService");
//	gxtToSeamServiceParameter.set("serviceMethodName", "getAllUnits");
//	BaseModel[] methodArguments2 = new BaseModel[1];
//	methodArguments2[0] = new BaseModel();
//	gxtToSeamServiceParameter.set("methodArguments",methodArguments2 );
//	type.put("gxttoseamserviceparametermodel", gxtToSeamServiceParameter);

	HandlerData.data ( type , "unitsService" , "getAllUnits" );
	GxtComponentMetaNodeModel node11  = new GxtComponentMetaNodeModel(type,12,13);
	return node11;
}




private GxtComponentMetaNodeModel getComboBoxGxtComponentMetaNodeModelnode6_6() {

	Map<String, Object> type = new HashMap<String, Object>();
	type.put("component_model_type_index", ComponentTypeEnum.COMBOBOX_MODEL.ordinal());
	type.put("fieldlabel", "换算方式");
	type.put("id", "unitConversionRate.conversionStyle");
	//type.put("dataload", "xxx");
	type.put("typeahead", true);
	type.put("emptytext", "===请选择===");
	type.put("loadingtext", "数据加载中,请稍等。。。。。。");
	type.put("allowblank", false);
	type.put("name", "comboBox");
//	BaseModel gxtToSeamServiceParameter = new BaseModel();
//	gxtToSeamServiceParameter.set("serviceComponentName", "conversionStyleService");
//	gxtToSeamServiceParameter.set("serviceMethodName", "getAllConversionStyle");
//	BaseModel[] methodArguments2 = new BaseModel[1];
//	methodArguments2[0] = new BaseModel();
//	gxtToSeamServiceParameter.set("methodArguments",methodArguments2 );
//	type.put("gxttoseamserviceparametermodel", gxtToSeamServiceParameter);

	HandlerData.data ( type , "conversionStyleService" , "getAllConversionStyle" );
	GxtComponentMetaNodeModel node11  = new GxtComponentMetaNodeModel(type,12,13);
	return node11;
}


private GxtComponentMetaNodeModel getTextFieldGxtComponentMetaNodeModelnode6_7() {
	
	Map<String, Object> TextFieldGxtComponent = new HashMap<String, Object>();
	TextFieldGxtComponent.put("component_model_type_index", ComponentTypeEnum.TEXTFIELD_MODEL.ordinal());

//			BaseModel gxtToSeamServiceParameter = new BaseModel();
//			gxtToSeamServiceParameter.set("serviceComponentName", "com.test.server.business.PersonService");
//			gxtToSeamServiceParameter.set("serviceMethodName", "loadTextFieldData");
//			BaseModel[] methodArguments2 = new BaseModel[1];
//			methodArguments2[0] = new BaseModel();
//			gxtToSeamServiceParameter.set("methodArguments",methodArguments2 );
			TextFieldGxtComponent.put("id", "unitConversionRate.CONVERSIONRATE");
//			TextFieldGxtComponent.put("gxttoseamserviceparametermodel", gxtToSeamServiceParameter);
			TextFieldGxtComponent.put("width", "400");
			TextFieldGxtComponent.put("title", "bbbbbbbbbbbbbbb");
			TextFieldGxtComponent.put("fieldlabel", "换算率");
			TextFieldGxtComponent.put("name", "textField01");
			TextFieldGxtComponent.put("emptytext", "afjooanfaof");
			TextFieldGxtComponent.put("allowblank", false);
			HandlerData.data ( TextFieldGxtComponent , "unitConversionRateService" , "getAllUnitConversionRate" , "addUnitConversionRate" , "modifyUnitConversionRate" , "loadEditorableGrid" );
		Map<String,Object> codes2 = new HashMap<String, Object>();
		//添加需要监听的事件类型，指定由某一个控制器响应，控制器内部应该如何响应（附加参数和数据）
		/**
		 * 00_01_02为特征码
		 * 或者是 控制器的唯一标识
		 */
			Map<String,Object> subMap = new HashMap<String, Object>();
				EventStructureMetaModel eventStructureMetaModel = new EventStructureMetaModel();
				eventStructureMetaModel.setControllerId("textFieldController01");
				eventStructureMetaModel.setResponseModeId("00_01_02");
			subMap.put("eventstructuremetamodel", eventStructureMetaModel);
		codes2.put("0301", subMap);
		//codes1.add("0002");
	//id.put("registereventtypes", codes2);
	GxtComponentMetaNodeModel node10  = new GxtComponentMetaNodeModel(TextFieldGxtComponent,10,11);
	return node10;
}



/**
 * 模拟从后台传过来的关于Window控件的元模型信息
 */
private GxtComponentMetaNodeModel getTextAreaGxtComponentMetaNodeModelnode6_8() {
	
	Map<String, Object> id = new HashMap<String, Object>();
	id.put("component_model_type_index", ComponentTypeEnum.TEXTAREA_MODEL.ordinal());
	
//			BaseModel gxtToSeamServiceParameter = new BaseModel();
//			gxtToSeamServiceParameter.set("serviceComponentName", "com.test.server.business.PersonService");
//			gxtToSeamServiceParameter.set("serviceMethodName", "loadTextFieldData");
//			BaseModel[] methodArguments2 = new BaseModel[1];
//			methodArguments2[0] = new BaseModel();
//			gxtToSeamServiceParameter.set("methodArguments",methodArguments2 );
//	id.put("gxttoseamserviceparametermodel", gxtToSeamServiceParameter);
	HandlerData.data ( id , "unitConversionRateService" , "getAllUnitConversionRate" , "addUnitConversionRate" , "modifyUnitConversionRate" , "loadEditorableGrid" );
	id.put("id", "unitConversionRate.COMENT");
	id.put("width", "400");
	id.put("height", 50);
	id.put("title", "bbbbbbbbbbbbbbb");
	id.put("fieldlabel", "备注信息");
	id.put("label", "编号Area_label");
	id.put("name", "textArea01");
	id.put("emptytext", "afjooanfaof");
	id.put("allowblank", false);
		Map<String,Object> codes2 = new HashMap<String, Object>();
		//添加需要监听的事件类型，指定由某一个控制器响应，控制器内部应该如何响应（附加参数和数据）
		/**
		 * 00_01_02为特征码
		 * 或者是 控制器的唯一标识
		 */
			Map<String,Object> subMap = new HashMap<String, Object>();
				EventStructureMetaModel eventStructureMetaModel = new EventStructureMetaModel();
				eventStructureMetaModel.setControllerId("textFieldController01");
				eventStructureMetaModel.setResponseModeId("00_01_02");
			subMap.put("eventstructuremetamodel", eventStructureMetaModel);
		codes2.put("0301", subMap);
	
	GxtComponentMetaNodeModel node10  = new GxtComponentMetaNodeModel(id,10,11);
	return node10;
	
}



	
}
